package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.es.SkuEsModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description:
 * @Author 胡菜鸡
 * @Create 2021-12-31-15:25
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    /**
     * 上架商品
     * @author 胡菜鸡
     * @date 2021/12/31 14:58
     */
    @PostMapping("/search/save/product")
    public R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);

}
